.NET Script Functions

FirstExecute

FirstExecute is a Boolean value indicating whether the current execute is the very first executeof the operation on the first row of data.

The predefined property of FirstExecute is available for use at any place in the script.

Example: FirstExecute

VB:

If FirstExecute Then

    ' Initialize a row counter and the custom Field(Of T) type

    myStateField = new Field(Of String)("Default")

    rowCounter = 1

End If

' increase the number of the execution row on all executes

rowCounter = rowCounter + 1

void SetQualityGood<T>(params Field<T>[] fields)

Set the qualities of any number of fields to Good.

void SetQualityBad<T>(params Field<T>[] fields)

Set the qualities of any number of fields to Bad.

int BestQuality<T>(params Field<T>[] fields)

Return the best quality out of a collection of fields.

int BestQuality(params int[] qualities)

Return the best quality out of a collection of qualities (as integers).

int WorstQuality<T>(params Field<T>[] fields)

Return the worst quality out of a collection of fields.

int WorstQuality(params int[] qualities)

Return the worst quality out of a collection of qualities (as integers).

bool IsQualityGood<T>(params Field<T>[] fields)

Check if all provided fields are good quality.

bool IsQualityGood(params int[] qualities)

Check if all the provided qualities (as integers) are good quality.

bool IsQualityBad<T>(params Field<T>[] fields)

Check if any of the provided qualities are bad quality.

bool IsQualityBad(params int[] qualities)

Check if any of the provided qualities (as integers) are bad quality.


Related topics:

  

CSense 2023- Last updated: June 24,2025